
const { ccclass, property, inspector } = cc._decorator;

@ccclass
export class Main extends cc.Component {

    protected start(): void {
        if (CC_PREVIEW) {
            let profiler = cc.find('PROFILER-NODE');
            profiler?.children.forEach(node => {
                let lbl = node.getComponent(cc.Label);
                if (lbl) {
                    lbl.fontSize = 30;
                    lbl.lineHeight = 30;
                    node.scale = 0.5;
                    let ol = node.getComponent(cc.LabelOutline) || node.addComponent(cc.LabelOutline);
                    ol.color = cc.Color.BLACK;
                    ol.width = 3;
                    node.opacity = 192;
                }
            });
        }
        cc.director.loadScene('Login')
    }

}
